
.data-list {
  padding: 20px;

  .filter-section {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    
    .el-select {
      width: 200px;
    }
  }

  .cards-row-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }

  .cards-row-container > :first-child {
    flex: 1;
  }

  .win-lose-container {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;

    .win-lose-card {
      border-radius: 16px;
      display: flex;
      width: 280px;
      transition: all 0.3s ease;
      border: none;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background: linear-gradient(135deg, #fffbe6, #fff1b8);

      &:hover {
        transform: translateY(-5px);
        .glass-effect {
          opacity: 0.9;
        }
      }

      .glass-effect {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.9),
          rgba(255, 255, 255, 0.8)
        );
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        opacity: 0.85;
        transition: opacity 0.3s ease;
        z-index: 0;
      }

      .card-content {
        display: flex;
        align-items: flex-start;
        position: relative;
        z-index: 1;
        width: 100%;
      }

      .icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        background: #faad14;

        i {
          font-size: 24px;
          color: #ffffff;
          text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
      }

      .info-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .win-lose-row {
        display: flex;
        flex-direction: column;
      }

      .win-lose-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .win-lose-label {
        font-size: 14px;
        color: #ffc53d;
        line-height: 1;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        margin-bottom: 4px;
      }

      .win-lose-value {
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

        &.win {
          color: #52c41a;
        }

        &.lose {
          color: #f5222d;
        }
      }

      &.el-card {
        background-color: transparent;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
      }
    }
  }

  .content-wrapper {
    margin-top: 10px;
    display: flex;
    gap: 20px;

    .map-section {
      width: 400px;
      height: 600px;
      background: #404a59;
      border-radius: 8px;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
      overflow: hidden;
      position: relative;

      .map {
        width: 100%;
        height: 100%;
      }

      .heatmap-overlay {
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 10;
        opacity: 0.9;
        mix-blend-mode: screen;
      }
    }

    .table-section {
      width: 350px;
      height: 600px;
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
      overflow-y: auto;

      .section-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #303133;
      }

      .ratio-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;

        span {
          min-width: 45px;
        }

        .el-progress {
          margin-right: 10px;
          flex: 1;
        }
      }

      .company-name {
        font-size: 14px;
        color: #606266;
        margin-bottom: 5px;
      }

      .company-areas {
        font-size: 12px;
        color: #909399;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;

        .more-areas {
          margin-left: 5px;
          color: #909399;
        }
      }

      .rank-badge {
        display: inline-block;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        background: #f5f7fa;
        border-radius: 50%;
        font-size: 12px;
        color: #606266;
        font-weight: 500;

        &.top-rank {
          background: linear-gradient(135deg, #ffd700, #ffb300);
          color: #fff;
          font-weight: bold;
        }
      }

      .project-count {
        font-size: 14px;
        color: #303133;
        font-weight: 500;
      }

      .ratio-text {
        font-size: 14px;
        color: #303133;
        font-weight: 500;
        margin-bottom: 5px;
        display: block;
      }
    }

    .right-panel {
      width: 300px;
      height: 600px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .competitor-section {
      flex: 1;
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
      overflow: hidden;
      display: flex;
      flex-direction: column;

      .section-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #303133;
      }

      .competitor-list {
        flex: 1;
        overflow-y: auto;
        padding-right: 5px;

        &::-webkit-scrollbar {
          width: 6px;
        }

        &::-webkit-scrollbar-track {
          background: #f1f1f1;
          border-radius: 3px;
        }

        &::-webkit-scrollbar-thumb {
          background: #c1c1c1;
          border-radius: 3px;

          &:hover {
            background: #a8a8a8;
          }
        }

        .competitor-item {
          margin-bottom: 15px;
          cursor: pointer;
          padding: 10px;
          border-radius: 4px;
          transition: all 0.3s;
          border: 2px solid transparent;

          &:hover {
            background: #f5f7fa;
          }

          &.selected {
            background: #e6f7ff;
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
          }

          .competitor-info {
            display: flex;
            align-items: center;
            margin-bottom: 8px;

            .rank {
              width: 24px;
              height: 24px;
              line-height: 24px;
              text-align: center;
              background: #f5f7fa;
              border-radius: 50%;
              margin-right: 10px;
              font-size: 14px;
              color: #606266;

              &.top-rank {
                background: #ffd700;
                color: #fff;
              }
            }

            .competitor-name {
              font-size: 14px;
              color: #606266;
              margin-right: 10px;
              flex: 1;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            .value-info {
              display: flex;
              align-items: baseline;
              gap: 5px;
              flex-shrink: 0;

            .value {
              font-size: 14px;
              color: #303133;
              font-weight: 500;
              }

              .percentage {
                font-size: 12px;
                color: #909399;
              }
            }
          }

          .el-progress {
            margin-top: 5px;
          }
        }
      }

      .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 0;
        color: #909399;
        font-size: 16px;

        .empty-text {
          margin-bottom: 5px;
        }

        .empty-hint {
          font-size: 14px;
          color: #c0c4cc;
        }
      }
    }

    .area-stats-section {
      flex: 0 0 auto;
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
      overflow: hidden;

      .section-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 20px;
        color: #303133;
      }

      .area-stats-list {
        .area-stats-item {
          margin-bottom: 12px;

          .area-stats-info {
            display: flex;
            align-items: center;
            margin-bottom: 6px;

            .area-name {
              flex: 1;
              font-size: 14px;
              color: #606266;
            }

            .area-value {
              font-size: 14px;
              color: #303133;
              font-weight: 500;
            }
          }

          .el-progress {
            margin-top: 3px;
          }
        }
      }

        .empty-state {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 30px 0;
          color: #909399;
          font-size: 14px;

          .empty-text {
            margin-bottom: 5px;
          }

          .empty-hint {
            font-size: 12px;
            color: #c0c4cc;
          }
        }
    }

    .city-analysis-section {
      flex: 1;
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 20px;

      &::-webkit-scrollbar {
        width: 6px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
      }

      &::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;

        &:hover {
          background: #a8a8a8;
        }
      }

      .section-title {
        font-size: 16px;
        font-weight: bold;
        color: #303133;
        margin-bottom: 0;
      }

      .city-rank-group {
        display: flex;
        flex-direction: column;
        gap: 12px;

        .city-rank-title {
          font-size: 14px;
          font-weight: 500;
          color: #606266;
          margin-bottom: 8px;
        }

        .city-list {
          display: flex;
          flex-direction: column;
          gap: 10px;

          .city-item {
            .city-info {
              display: flex;
              align-items: center;
              margin-bottom: 6px;
              gap: 10px;

              .city-rank {
                width: 24px;
                height: 24px;
                line-height: 24px;
                text-align: center;
                background: #f5f7fa;
                border-radius: 50%;
                font-size: 12px;
                color: #606266;
                font-weight: 500;
                flex-shrink: 0;

                &.top-rank {
                  background: linear-gradient(135deg, #ffd700, #ffb300);
                  color: #fff;
                  font-weight: bold;
                }
              }

              .city-name {
                flex: 1;
                font-size: 14px;
                color: #606266;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
              }

              .city-ratio {
                font-size: 14px;
                color: #303133;
                font-weight: 500;
                flex-shrink: 0;
              }
            }

            .el-progress {
              margin-top: 3px;
            }
          }
        }
      }

      .city-summary {
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid #ebeef5;
        display: flex;
        flex-direction: column;
        gap: 8px;

        .summary-item {
          font-size: 14px;
          color: #606266;
          line-height: 1.6;

          span {
            color: #303133;
          }
        }
      }
    }
  }
}
